package com.kly.sc.api.application.controller.product.response;

import com.kly.dto.ProductCategoryDto;
import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class SubscriptionsVO {

    private String tip;
    private String content;
    private String header;
    private Boolean showFlag;
    private String icon;

    public static SubscriptionsVO toVo(ProductCategoryDto.Subscriptions o) {
        return SubscriptionsVO.builder().tip(o.getTip()).content(o.getContent()).header(o.getHeader()).showFlag(o.isShowFlag()).icon(o.getIcon()).build();
    }
}
